package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("amap_location")
@Schema(description = "地点信息")
public class Location {

    @TableId(type = IdType.AUTO)
    @Schema(description = "景点位置id")
    private Long id;

    @Schema(description = "所属城市")
    private String cityCode;

    @Schema(description = "景点名称")
    private String name;

    @Schema(description = "景点地址")
    private String address;

    @Schema(description = "地点类型")
    private String type;

    @Schema(description = "经度")
    private Double longitude;

    @Schema(description = "纬度")
    private Double latitude;

    private String telephone;

    @Schema(description = "注意事项")
    private String description;

    private LocalDateTime createTime;

    private Boolean deleted;
}
